import { MockMethod } from "vite-plugin-mock";
const url = "/api/v1/menus/routes";
const method = "get";
const data = {
  code: "00000",
  data: [
    {
      path: "/construct",
      component: "() => import('@/views/construct/index.vue')",
      meta: {
        title: "建设总览",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
    },
    {
      path: "/project",
      component: "() => import('@/views/project/index.vue')",
      meta: {
        title: "项目管理",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
    },
    {
      path: "/digit",
      component: "() => import('@/views/digit/index.vue')",
      meta: {
        title: "数字农业",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
    },
    {
      path: "/nurse",
      component: "() => import('@/views/nurse/index.vue')",
      meta: {
        title: "建后管护",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
    },
    {
      path: "/application",
      component: "() => import('@/views/application/index.vue')",
      // redirect: "/system/user",
      meta: {
        title: "应用系统",
        icon: "system",
        hidden: false,
        roles: ["ADMIN"],
        keepAlive: true,
      },
    },
  ],
  msg: "一切ok",
};

export default [
  {
    url: url,
    method: method,
    response: () => {
      return data;
    },
  },
] as MockMethod[];
